<?php
/**
 * Created by PhpStorm.
 * User: xiao
 * Date: 2018/9/10
 * Time: 16:17
 */

namespace app\common\model;


use app\common\base\BaseModel;

class User extends BaseModel
{


    public function findUserByWeChatOpenId($openId)
    {
        if (empty($openId)) return null;
        $where['wechat_open_id'] = $openId;

        $result = $this->where($where)->find();
        return $result;
    }






}